package com.haoshuang.zhouzhoubang.ui.page.home.settings.skill.passed

import com.haoshuang.zhouzhoubang.databinding.ItemAddSkillLeftBinding
import com.haoshuang.zhouzhoubang.databinding.ItemPassedSkillLeftBinding
import com.haoshuang.zhouzhoubang.model.bean.SkillAddBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 左侧一级技能列表
 */
class PassedSkillLeftAdapter(data: MutableList<SkillAddBean>) : BaseBindingQuickAdapter<SkillAddBean, ItemPassedSkillLeftBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: SkillAddBean?) {
        holder.getViewBinding<ItemPassedSkillLeftBinding>().apply {

            tvTitle.text = item?.cate_name
            tvTitle.isSelected = item?.is_checked == true

        }
    }

}